import {Http} from "../util/http";

class Message {
  static async doApiAddMessage(data) {
    return Http.request({
      url: '/system/message',
      method: 'POST',
      data
    })
  }

  static async doApiGetMessageList(query) {
    return Http.request({
      url: '/system/message/list',
      data: query
    })
  }

  static async doApiGetMyMessageList(data) {
    return Http.request({
      url: '/system/message/my',
      method: 'POST',
      data
    })
  }
}

export {
  Message
}
